<?= doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Connexion</title>
	<?php
		$meta = array(
			array('name' => 'Content-type', 'content' => 'text/html; charset=UTF-8', 'type' => 'equiv'),
			array('name' => 'robots', 'content' => 'noindex, nofollow')
		);
		echo meta($meta)
			.link_tag('css/admin/admin_login.css')
			.link_tag('css/common.css')
			.link_tag('images/paris_descartes_fav.png', 'shortcut icon', 'image/ico');
	?>
</head>

<body>
<div id="admin_login">
	<?php
	echo img(array('src' => 'images/paris_descartes_u.jpg', 'id' => 'logo'));

	echo form_open('admin/login/connection')
		.form_label(icon_tag('user').' E-mail', 'email')
		.form_input('email', $email, 'id="email"')
		.form_label(icon_tag('key').' Mot de passe', 'password')
		.form_password('password', '', 'id="password"')
		.form_label('Se souvenir de moi :', 'remember_me')
		.form_checkbox('remember_me', 1, $remember_me, 'id="remember_me"');
	if (isset($error_notice)) {
		echo '<div class="error">'.$error_notice.'</div>';
	}
	echo form_submit('connect', 'Connexion')
		.form_close();
	?>
	<table class="browsers">
		<tr>
			<td>Recommandés : </td>
			<td><?= img('images/browsers/'.$navs[0].'.png').img('images/browsers/'.$navs[1].'.png'); ?></td>
		</tr>
		<tr>
			<td>Supportés : </td>
			<td><?php foreach($navs as $nav) echo img('images/browsers/'.$nav.'.png'); ?></td>
		</tr>
	</table>
</div>
</body>
</html>
